ARD2  1.00 for Rev B. Hardware
Airbag Reference Demonstrator using MPC5604P
Init_State.h File Reference

State-machine state that initializes everything before handing over application. More...

Go to the source code of this file.

Defines

#define TRUE   (1u)
#define CLEAR   (0u)
#define BITS_IN_NIBBLE   (4u)
#define BITS_IN_BYTE   (8u)
#define BYTES_IN_16   (2u)
#define BYTES_IN_32   (4u)
#define BIT_DEFINITION
#define BIT0   (1u << 0u)
#define BIT1   (1u << 1u)
#define BIT2   (1u << 2u)
#define BIT3   (1u << 3u)
#define BIT4   (1u << 4u)
#define BIT5   (1u << 5u)
#define BIT6   (1u << 6u)
#define BIT7   (1u << 7u)
#define BIT8   (1u << 8u)
#define BIT9   (1u << 9u)
#define BIT10   (1u << 10)
#define BIT11   (1u << 11)
#define BIT12   (1u << 12)
#define BIT13   (1u << 13)
#define BIT14   (1u << 14)
#define BIT15   (1u << 15)
#define BIT16   (1u << 16)
#define BIT17   (1u << 17)
#define BIT18   (1u << 18)
#define BIT19   (1u << 19)
#define BIT20   (1u << 20)
#define BIT21   (1u << 21)
#define BIT22   (1u << 22)
#define BIT23   (1u << 23)
#define BIT24   (1u << 24)
#define BIT25   (1u << 25)
#define BIT26   (1u << 26)
#define BIT27   (1u << 27)
#define BIT28   (1u << 28)
#define BIT29   (1u << 29)
#define BIT30   (1u << 30)
#define BIT31   (1u << 31)
#define INIT_STATE_MCU_ERROR   ((uint32_t)BIT15)
#define INIT_STATE_SBC_ERROR   ((uint32_t)BIT14)
#define INIT_STATE_CA_ERROR   ((uint32_t)(BIT13 | BIT12))
#define N_ELEMENTS(X)   (sizeof(X)/sizeof(*(X)))

Functions

void vfnVerifyMCUInitStatus (uint8_t u8Status)
 This function analyzes the Initial MCU status and turns LED's. accordingly. If something didn't initialize correctly, it traps the error and keeps the program from continuing.

Detailed Description

State-machine state that initializes everything before handing over application.

Copyright (C) 2011 Freescale Semiconductor Freescale Confidential Proprietary

Author:
Freescale Semiconductor
SASD Automotive
r11515
Version:
Date:
Warning:
(If needed)

History:


Function Documentation

void vfnVerifyMCUInitStatus ( uint8_t  u8Status)

This function analyzes the Initial MCU status and turns LED's. accordingly. If something didn't initialize correctly, it traps the error and keeps the program from continuing.

Parameters:
u8Status,:Status byte coming from init routine.
Returns:
void.